<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link type="text/css" rel="stylesheet" href="lib/jquery_datatables_lastest/media/css/demo_page.css" />
<link type="text/css" rel="stylesheet" href="lib/jquery_datatables_lastest/media/css/demo_table_jui.css" />
<link type="text/css" rel="stylesheet" href="lib/jquery.ui/themes/base/jquery.ui.all.css" />
<link type="text/css" rel="stylesheet" href="lib/sheet.css" />
<script type="text/javascript" src="lib/jquery_lastest.js"></script>
<script type="text/javascript" src="lib/jquery_datatables_lastest/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
	$(function() {
		$(".contable tbody tr").live('hover',function(){	//对返回的dom进行hover事件捕获
			$(this).toggleClass("over");	//添加css样式
		});

		oTable = $('.contable').dataTable({
			"iDisplayLength": 50,
			"bJQueryUI": true,
			"sPaginationType": "full_numbers",
			"oLanguage": {
				"sUrl": "lib/jquery_datatables_lastest/media/language/zh_CN.txt"
			},
			"aaSorting": [[0,'desc']]


		});
		
	
		
	});
</script>	
</head>

<body>
<%
call CheckRights(3,1)
%>

<%
	Set rs = Server.CreateObject("ADODB.Recordset")
	sql = "SELECT *  FROM freight"
	rs.Open sql,conn,1,1
	If rs.eof Then
		rs.close
%>
		<p><a href="add_freight.asp">托运人信息不存在，请添加</a></p>
<%
		response.end
	End If

%>
<div class="navbar">
	<a href="manage_freight.asp">托运人信息管理</a>&gt;&gt;<a href="add_freight.asp">添加托运人</a>&gt;&gt;
</div>

<table class="contable display">
	<thead>
		<tr>
      <th>ID</th>
      <th>托运人</th>
    </tr>
	</thead>
	<tbody>
	<% while not rs.eof %>
  	<tr>
      <td><%=rs("freight_id")%></td>
      <td><%=rs("freight_name")%></td>
    </tr>
	<% rs.movenext
	wend %>
	</tbody>
</table>

<%
	rs.close 
	set rs=nothing
	conn.close
	set conn=nothing

%>
</body>
</html>
